using System.Text;
using Common;
using Common.Enum;
using SWellPlate;

namespace MainView.MainControls.Chart
{
	public abstract class BaseMeltCurveChart : BaseCurveChart
	{
		protected override string GetToolTipString(ChartData chartData)
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.AppendLine(Utility.GetMessage("well_no") + Utility.GetMessage("Colon") + chartData.WellCell.Well.CellName);
			stringBuilder.AppendLine(Utility.GetMessage("Channel") + Utility.GetMessage("Colon") + chartData.SampleTargetItem.ChannelNo);
			stringBuilder.AppendLine(Utility.GetMessage("Target") + Utility.GetMessage("Colon") + chartData.SampleTargetItem.TargetName);
			stringBuilder.AppendLine(Utility.GetMessage("Type") + Utility.GetMessage("Colon") + EnumManagement.GetSampleTypeName(chartData.SampleTargetItem.SampleType));
			stringBuilder.AppendLine(Utility.GetMessage("patient_name") + Utility.GetMessage("Colon") + chartData.WellCell.Well.Sample.PatientInfo.Name);
			stringBuilder.AppendLine(Utility.GetMessage("sample_name") + Utility.GetMessage("Colon") + chartData.WellCell.Well.Sample.SampleName);
			stringBuilder.AppendLine(base.TitleX + Utility.GetMessage("Colon") + "#VAL{X}");
			stringBuilder.AppendLine(base.TitleY + Utility.GetMessage("Colon") + "#VALX{Y}");
			return stringBuilder.ToString();
		}
	}
}
